$message = "<b>You chose a name for the new collection that was already in use by an existing collection.</b> Go back if you want to create a new collection, otherwise, you can now configure the collection whose name you specified.";
print "Designate the directory where the index files will be stored.\n";
print "Make sure there is enough space on the directory to accomodate the index files, which will be about 50 percent of the total size of the files you index during indexing, and 15 percent once indexing has completed.<br>\n";
return "Bad filename given. ($_) Please use absolute pathnames.";
}
s/^\+//;
return "Could not find file list '$_'. Please re-enter the file list filename."
if (! -e $_);
return "Could not read from file list '$_'. Please re-enter the file list filename."
if (! -r $_);
## check to to enforce files in file list appear under html root
open(FLIST, "$_");
while (<FLIST>) {
if (! &Architext'underRoot($_, $ews_port || '*', %url_maps)) {
close(FLIST);
return "The file '$_' specified in the file list does not appear under your html root directory or any of the directories mentioned in your URL Mapping configuration. Please specify files that appear under these directories, or your Web server will not have access to them.";
}
}
close(FLIST);
} else {
## check here to enforce that files appear under html root
return "Specified file or directory '$_' does not appear under your html root directory or any of the directories mentioned in your URL Mapping configuration. Please specify files that appear under your these directories, or your Web server will not have access to them." unless &Architext'underRoot($_, $ews_port || '*', %url_maps);
return "Specified file or directory '$_' does not exist. Please re-enter the list of files to index."
if (! -e $_);
return "Could not read from the specified file or directory '$_'. Please re-enter the list of files to index."
if (! -r $_);
}
}
if (&Architext'notifyMode()) {
$n_do = 0;
$n_exist = 0;
$n_do = 1 if ($form{'notify'} eq "NOTIFY");
$n_exist = 1 if (-e "$root/collections/$form{'dbname'}.pub");